package com.fortune.dto.in.dealaerProduce;

import com.fortune.constants.enums.BackBox;
import com.fortune.constants.enums.DELETED;
import com.fortune.constants.enums.Shelf;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

public class DProductEditDto {
	@NotBlank(message="商品id不能为空")
	@ApiModelProperty(required=true, example="商品id")
	private String id;
	@NotBlank(message="商品名称不能为空")
	@ApiModelProperty(required=true, example="商品名称")
	private String name;
	@NotBlank(message="商品分类ID不能为空")
	@ApiModelProperty(required=true, example="商品分类ID")
	private String ppcid;
	@NotBlank(message="商品编号不能为空")
	@ApiModelProperty(required=true, example="商品编号")
	private String number;
	@NotBlank(message="规格ID不能为空")
	@ApiModelProperty(required=true, example="规格ID")
	private String msid;
	@NotBlank(message="单位ID不能为空")
	@ApiModelProperty(required=true, example="单位ID")
	private String muid;
	@NotBlank(message="商品条形码不能为空")
	@ApiModelProperty(required=true, example="商品条形码")
	private String barcode;
	@NotNull(message="市场零售价不能为空")
	@DecimalMin(value = "0", message = "最少为0")
	@ApiModelProperty(required=true, example="市场零售价")
	private BigDecimal retailPrice;
	@NotNull(message="统一批发价（对经销商）不能为空")
	@DecimalMin(value = "0", message = "最少为0")
	@ApiModelProperty(required=true, example="统一批发价（对经销商）")
	private BigDecimal wholesalePrice;
	@NotNull(message="是否回空箱(YES,NO)不能为空")
	@ApiModelProperty(required=true, example="是否回空箱(YES,NO)")
	private BackBox backBox;
	@NotNull(message="空箱押金不能为空")
	@DecimalMin(value = "0", message = "最少为0")
	@ApiModelProperty(required=true, example="空箱押金")
	private BigDecimal boxPrice;
	@NotNull(message="是否上架(YES,NO)不能为空")
	@ApiModelProperty(required=true, example="是否上架(YES,NO)")
	private Shelf shelf;
	@NotNull(message="是否删除(NORMAL,DELETE)不能为空")
	@ApiModelProperty(required=true, example="是否删除(NORMAL,DELETE)")
	private DELETED deleted;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPpcid() {
		return ppcid;
	}

	public void setPpcid(String ppcid) {
		this.ppcid = ppcid;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getMsid() {
		return msid;
	}

	public void setMsid(String msid) {
		this.msid = msid;
	}

	public String getMuid() {
		return muid;
	}

	public void setMuid(String muid) {
		this.muid = muid;
	}

	public String getBarcode() {
		return barcode;
	}

	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}

	public BigDecimal getRetailPrice() {
		return retailPrice;
	}

	public void setRetailPrice(BigDecimal retailPrice) {
		this.retailPrice = retailPrice;
	}

	public BigDecimal getWholesalePrice() {
		return wholesalePrice;
	}

	public void setWholesalePrice(BigDecimal wholesalePrice) {
		this.wholesalePrice = wholesalePrice;
	}

	public BackBox getBackBox() {
		return backBox;
	}

	public void setBackBox(BackBox backBox) {
		this.backBox = backBox;
	}

	public BigDecimal getBoxPrice() {
		return boxPrice;
	}

	public void setBoxPrice(BigDecimal boxPrice) {
		this.boxPrice = boxPrice;
	}

	public Shelf getShelf() {
		return shelf;
	}

	public void setShelf(Shelf shelf) {
		this.shelf = shelf;
	}

	public DELETED getDeleted() {
		return deleted;
	}

	public void setDeleted(DELETED deleted) {
		this.deleted = deleted;
	}

	@Override
	public String toString() {
		return "ProductEditDto{" +
				"id='" + id + '\'' +
				", name='" + name + '\'' +
				", ppcid='" + ppcid + '\'' +
				", number='" + number + '\'' +
				", msid='" + msid + '\'' +
				", muid='" + muid + '\'' +
				", barcode='" + barcode + '\'' +
				", retailPrice=" + retailPrice +
				", wholesalePrice=" + wholesalePrice +
				", backBox=" + backBox +
				", boxPrice=" + boxPrice +
				", shelf=" + shelf +
				", deleted=" + deleted +
				'}';
	}
}
